package day03_inherit.Auto;

public class Car {
    private String type;
    private int car_length;
    private int price;

    public void showMsg(){
        System.out.println("车型："+type);
        System.out.println("价格："+price);
        System.out.println("车长："+car_length);
        System.out.println();
    }

    public Car() {
    }

    public Car(String type, int car_length, int price) {
        this.type = type;
        this.car_length = car_length;
        this.price = price;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getCar_length() {
        return car_length;
    }

    public void setCar_length(int car_length) {
        this.car_length = car_length;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }
}
